package com.duansky;

public class Node implements Cloneable{

	String id;
	String label;
	double x;
	double y;
	double size;
	
	int din;
	int dout;
	int dtotal;
	int state;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public double getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public double getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getDin() {
		return din;
	}

	public void setDin(int din) {
		this.din = din;
	}

	public int getDout() {
		return dout;
	}

	public void setDout(int dout) {
		this.dout = dout;
	}

	public int getDtotal() {
		return dtotal;
	}

	public void setDtotal(int dtotal) {
		this.dtotal = dtotal;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	Node(String id,String label,double x,double y,double size,int din,int dout,int dtotal,int state ){
		this.id=id;
		this.label=label;
		this.x=x;
		this.y=y;
		this.size=size;
		this.din=din;
		this.dout=dout;
		this.dtotal=dtotal;
		this.state=state;
	}
	
	@Override
	public Object clone() throws CloneNotSupportedException 
	{
		Node node=(Node) super.clone();
		return node;
		
	}

	
}
